$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
ENV["RAILS_ENV"] ||= 'test'

require "rails_lazy_commands"
require "rspec"
require "rubygems"
require 'rails/all'
require "dummy"

module FooBar
  class Application < Rails::Application
    config.secret_key_base = 'foobar'
    config.root = Dir.new('.')
  end
end

RSpec.configure do |config|

  Rails.application.initialize!

end


Dir["./spec/support/**/*.rb"].each { |f| require f }